package org.mx.test.entity;

import org.mx.dal.entity.BaseDictTree;
import org.mx.dal.entity.BaseDictTreeEntity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by john on 2017/10/6.
 */
@Entity(name = "User")
@Table(name = "TB_USER")
@ToString(callSuper = true)
@Getter
@Setter
public class UserEntity extends BaseDictTreeEntity<UserEntity> implements User, BaseDictTree<UserEntity> {
    /**
	 * 
	 */
	private static final long serialVersionUID = 3773118406580644903L;
	@Column(name = "EMAIL", length = 50)
    private String email;
    @Column(name = "ADDRESS")
    private String address;
    @Column(name = "POST_CODE", length = 20)
    private String postCode;
    @Column(name = "MOBILE", length = 20)
    private String mobile;
}
